import { ref } from "vue";

interface ForgetpwUser {
  email: string;
}

export const forgetpwUser = ref<ForgetpwUser>({
  email: "",
});

interface ForgetpwRules {
  email: {
    type: string;
    message: string;
    required: boolean;
    trigger: string;
  }[];
}

export const forgetpwRules = ref<ForgetpwRules>({
  email: [
    {
      type: "email",
      message: "邮箱格式不正确...",
      required: true,
      trigger: "blur",
    },
  ],
});